<div class="<%= dom_class(category) %>" id="<%= dom_id(category) %>">
	<h2><%= link_to h(category.name), category_path(category) %></h2>
	<table class="box" cellspacing="0">
		<thead>
			<tr>
				<th class="coL1"><%=_ 'Forum' %></th>
				<th class="col2"><%=_ 'Topics' %></th>
				<th class="col3"><%=_ 'Posts' %></th>
				<th class='col4'><%=_ 'Last message' %></th>
			</tr>
		</thead>
		<tbody>
			<% for forum in category.forums %>
			<tr id="<%= dom_id(forum) %>">
				<td class="col1">
					<h3><%= link_to h(forum.name), forum_path(forum) %></h3>
					<%= forum.description_html unless forum.description_html.blank? %>
				</td>
				<td class="col2"><%= forum.topics_count %></td>
				<td class="col3"><%= forum.posts_count %></td>
				<td class="col4">
					<% unless forum.last_reply_id.nil? %>
					<%= "#{forum.last_reply.created_at.to_s(:db)} by #{forum.last_reply.user.login}"%>
					<% else %>
					&nbsp;
					<% end %>
				</td>
			</tr>
			<% end %>
		</tbody>
	</table>
</div>